package com.hatricks.as.agent;

import com.hatricks.as.transformer.ExceptionTransformer;

import java.lang.instrument.Instrumentation;

public class ExceptionHandlerAgent {
    public static void premain(String agentArgs, Instrumentation inst) {
        System.out.println("premain 已经开始执行了呢");
        inst.addTransformer(new ExceptionTransformer());
    }

    public static void agentmain(String agentArgs, Instrumentation inst) {
        System.out.println("agentmain 已经开始执行了呢");
    }
}